package cn.itcast.order.pojo;

import lombok.Data;

/**
 * CREATE DATABASE cloud_order;
 * SET FOREIGN_KEY_CHECKS = 0;
     DROP TABLE IF EXISTS tb_order;
     CREATE TABLE tb_order(
     `id` BIGINT(20) NOT NULL COMMENT '主键',
     `user_id` BIGINT(20) NOT NULL COMMENT '用户ID',
     `name` VARCHAR(200) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品名称',
     `price` BIGINT(20) NOT NULL COMMENT '价格',
     `num` INT(20) NOT NULL COMMENT '编号',
     PRIMARY KEY (`id`) USING BTREE
     ) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='订单表';
 */
@Data
public class Order {
    private Long id;
    private Long price;
    private String name;
    private Integer num;
    private Long userId;
    private User user;
}